package com.ruoyi.system.service.impl;

import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PointPassMapper;
import com.ruoyi.system.domain.PointPass;
import com.ruoyi.system.service.IPointPassService;

/**
 * 积分通Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-26
 */
@Service
public class PointPassServiceImpl implements IPointPassService 
{
    @Autowired
    private PointPassMapper pointPassMapper;

    /**
     * 查询积分通
     * 
     * @param id 积分通主键
     * @return 积分通
     */
    @Override
    public PointPass selectPointPassById(Long id)
    {
        return pointPassMapper.selectPointPassById(id);
    }

    /**
     * 查询积分通列表
     * 
     * @param pointPass 积分通
     * @return 积分通
     */
    @Override
    public List<PointPass> selectPointPassList(PointPass pointPass)
    {
        return pointPassMapper.selectPointPassList(pointPass);
    }

    /**
     * 新增积分通
     * 
     * @param pointPass 积分通
     * @return 结果
     */
    @Override
    public int insertPointPass(PointPass pointPass)
    {
        return pointPassMapper.insertPointPass(pointPass);
    }

    /**
     * 修改积分通
     * 
     * @param pointPass 积分通
     * @return 结果
     */
    @Override
    public int updatePointPass(PointPass pointPass)
    {
        return pointPassMapper.updatePointPass(pointPass);
    }

    /**
     * 批量删除积分通
     * 
     * @param ids 需要删除的积分通主键
     * @return 结果
     */
    @Override
    public int deletePointPassByIds(Long[] ids)
    {
        return pointPassMapper.deletePointPassByIds(ids);
    }

    /**
     * 删除积分通信息
     * 
     * @param id 积分通主键
     * @return 结果
     */
    @Override
    public int deletePointPassById(Long id)
    {
        return pointPassMapper.deletePointPassById(id);
    }

    @Override
    public List<HashMap> selectTableData() {
        return pointPassMapper.selectTableData();
    }
}
